package cn.stylefeng.guns.modular.hx.order.mapper;

import cn.stylefeng.guns.modular.hx.order.entity.HxOrderOut;
import cn.stylefeng.guns.modular.hx.order.entity.HxOrderPut;
import cn.stylefeng.guns.modular.hx.order.model.params.HxOrderOutParam;
import cn.stylefeng.guns.modular.hx.order.model.params.HxOrderPutParam;
import cn.stylefeng.guns.modular.hx.order.model.result.HxOrderOutResult;
import cn.stylefeng.guns.modular.hx.order.model.result.HxOrderPutResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 出库订单表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2023-08-30
 */
public interface HxOrderOutMapper extends BaseMapper<HxOrderOut> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    List<HxOrderOutResult> customList(@Param("paramCondition") HxOrderOutParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") HxOrderOutParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    Page<HxOrderOutResult> customPageList(@Param("page") Page page, @Param("paramCondition") HxOrderOutParam paramCondition, @Param("condition") String condition,@Param("operateId")Long operateId);

    Page<HxOrderOutResult> findqueryPageBySpec(@Param("page") Page page, @Param("paramCondition") HxOrderOutParam paramCondition, @Param("condition") String condition,@Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") HxOrderOutParam paramCondition);

    HxOrderOut findByThelastone();

	String checkCustomerOrder(String orderOutNumber);

	boolean saveBatchList(@Param("list")List<HxOrderOutParam> list);

	HxOrderOutResult findBySpec(@Param("paramCondition")HxOrderOutParam param);

    List<HxOrderOutResult> findlistAllBySpec(@Param("paramCondition") HxOrderOutParam hxOrderOutParam, @Param("condition")String condition, @Param("operateId")Long operateId);

    HxOrderOutResult count(@Param("paramCondition") HxOrderOutParam hxOrderOutParam, @Param("condition")String condition, @Param("operateId")Long operateId);

	List<HxOrderOutResult> findOrderOutNumberListBySpec(@Param("paramCondition")HxOrderOutParam orderOutParam1);

	void deletebyids(@Param("list")List<Integer> deleteolist);

    List<HxOrderOutResult> findlistAllBySpec1(@Param("paramCondition") HxOrderOutParam hxOrderOutParam, @Param("condition")String condition, @Param("operateId")Long operateId);

    HxOrderOutResult count1(@Param("paramCondition") HxOrderOutParam hxOrderOutParam, @Param("condition")String condition, @Param("operateId")Long operateId);

	List<HxOrderOutResult> findOrderListBySpec(@Param("paramCondition")HxOrderOutParam hxop);

    List<HxOrderOutResult> expExcel(@Param("paramCondition")HxOrderOutParam hxop, @Param("condition")String condition, @Param("operateId")Long operateId);

    Page<HxOrderOutResult> findPageByMap(@Param("page")Page page, @Param("paramCondition")HxOrderOutParam param, @Param("condition") String condition, @Param("operateId")Long operateId);
}
